<?php
//// ---------- -------- ------ Area para mensagens do sistema "DEU CERTO"  ---------- --------------- ------------- ------------------ --------- --------- ---------
    if($this->session->flashdata('mensagemok')){
    echo '<center>';
    echo '<BR><div class="ao" style="width:900px;background-color:#FFFFCC;
        font-family:"Lucida Sans Unicode", "Lucida Grande", sans-serif;height:50px;
        line-height:50px;text-align:center;z-index:999;position:absolute;">'.$this->session->flashdata('mensagemok').'</div><BR>';
    echo '</center>';
    }   
//// ---------- -------- ------ FIM Area para mensagens do sistema "DEU CERTO" ---------- --------------- ------------- ------------------ --------- --------- ---------
?> 
<?php
//// ---------- -------- ------ Area para mensagens do sistema  "DEU ERRADO" ---------- --------------- ------------- ------------------ --------- --------- ---------
    if($this->session->flashdata('mensagemerro')){
    echo '<center>';
    echo '<BR><div class="ao" style="width:900px;background-color:#FFFFCC;
        font-family:"Lucida Sans Unicode", "Lucida Grande", sans-serif;height:50px;
        line-height:50px;text-align:center;z-index:999;position:absolute;"><span style="color:red; text:center">'
        .$this->session->flashdata('mensagemerro').'</span></div><BR>';
    echo '</center>';
    }   
//// ---------- -------- ------ FIM Area para mensagens do sistema "DEU ERRADO" ---------- --------------- ------------- ------------------ --------- --------- ---------
?> 

<div class="conteudo">
    
    <div class="bt-criar-dica" style="margin-right: 30px"><a href="<?php echo (base_url("meu_painel_de_administracao/pagina/index/".$pg)); ?>"><img src="<?php echo base_url('assets/adm/imagens/cancelarr.png')?>" width="67" height="21" />VOLTAR</a></div>
    
<div class="top-paginas"></div>
    <div class="clear"></div>
  <div class="cont-anuncio">
    
<div class="content">
       	  
    <table width="960" border="1" cellspacing="0" cellpadding="0" bordercolor="#CCCCCC" align="center">

    <tr>
        <th align="center"><strong style="padding-right:480px; padding-left: 5px">Página</strong></th>
        <th align="center"><strong style="padding-right:45px; padding-left: 5px">Posição</strong></th>
      <th align="center"><strong>Opções</strong></th>
    </tr>
    
  
    
<?php
foreach ($registro as $pag){
?>

    
<tr class="odd">
  	
    <td width="7%" align="center" style="text-align: left ; padding: 5px" ><b><?php echo $pag->pag_nome ?></b></td>
    <td width="7%" align="center" style="text-align: left ; padding: 5px"><?php echo 'Posição '.$pag->pag_posicao ?></td>
    <td><table width="100%" border="0" cellspacing="5" class="options" cellpadding="0">
     <tr>
         
         <?php 
         if($pag->pag_id_fk == 5 || $pag->pag_id_fk == 6){
         ?>
         
        <td height="14"></td>
        <td><a href="">&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </a></td>
 
         <?php 
         }else if($pag->pag_id_fk <> 5 || $pag->pag_id_fk <> 6){
         ?>        
        
        <td height="14"><img src="<?php echo base_url('assets/adm/imagens/lupa.png')?>" alt="" width="11" height="12" /></td>
        <td><a href="<?php echo (base_url("meu_painel_de_administracao/pagina/visualiza_item_pagina/".$pag->pag_id.'/'.$pg.'/'.$id_pai)); ?>">Visualizar </a></td>
 
         <?php 
         }
         ?>  
        
        
         <?php 
         if($pag->pag_id_fk == 5){
         ?>
        
         <td><img src="<?php echo base_url('assets/adm/imagens/lapis.gif')?>" alt="" width="14" height="14" /></td>
         <td><a href="<?php echo (base_url("meu_painel_de_administracao/pagina/pagina_edita_item_pagamento/".$pag->pag_id.'/'.$pg.'/'.$id_pai)); ?>">Editar</a></td>
                

         <?php 
         }else if($pag->pag_id_fk == 6){
         ?> 
        
         <td><img src="<?php echo base_url('assets/adm/imagens/lapis.gif')?>" alt="" width="14" height="14" /></td>
         <td><a href="<?php echo (base_url("meu_painel_de_administracao/pagina/pagina_edita_item_compartilhe/".$pag->pag_id.'/'.$pg.'/'.$id_pai)); ?>">Editar</a></td>
        
         <?php 
         }else{
         ?>  
         
         <td><img src="<?php echo base_url('assets/adm/imagens/lapis.gif')?>" alt="" width="14" height="14" /></td>
         <td><a href="<?php echo (base_url("meu_painel_de_administracao/pagina/pagina_edita_itens/".$pag->pag_id.'/'.$pg.'/'.$id_pai)); ?>">Editar</a></td>
        
         <?php 
         }
         ?>  
        
        <?php // opção excluir desativada !! ---------------------------------------------------------------
        //<td><img src=" echo base_url('assets/adm/imagens/close.gif')" alt="" width="14" height="14" /></td>
        //<td><a href="echo (base_url("meu_painel_de_administracao/pagina/index/".($pgg))); ">Excluir</a></td>
        ?>
        
        </tr>
    </table></td>
    
</tr>
  
<?php
}
?>
  

</table>

</div>
    
    
    
    <!--cont-anuncio-->
    </div>
</div>
